.class Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;
.super Landroid/os/Handler;
.source "CreateOAuthNetDisk.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    sget v1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->r:I

    const-string v2, "fail"

    const/4 v3, 0x1

    if-ne v0, v1, :cond_1

    .line 2
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-nez p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    const v0, 0x7f1103fb

    .line 4
    invoke-virtual {p1, v0}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    .line 5
    invoke-static {p1, v0, v3}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1, v2}, Lcom/estrongs/android/statistics/c;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_2

    .line 7
    :cond_0
    check-cast p1, Ljava/lang/String;

    .line 8
    new-instance v0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b$a;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b$a;-><init>(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;Ljava/lang/String;)V

    .line 9
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void

    .line 10
    :cond_1
    sget v1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->s:I

    if-ne v0, v1, :cond_3

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/webkit/WebView;

    move-result-object v0

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 12
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/lang/String;

    const-string v0, "://"

    .line 13
    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    .line 14
    iget-object v1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    if-lez v0, :cond_2

    add-int/lit8 v0, v0, 0x3

    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    :cond_2
    invoke-static {v1, p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;Ljava/lang/String;)Ljava/lang/String;

    return-void

    .line 15
    :cond_3
    sget v1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->w:I

    const/4 v4, 0x0

    if-ne v0, v1, :cond_7

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/webkit/WebView;

    move-result-object p1

    invoke-virtual {p1}, Landroid/webkit/WebView;->getContentHeight()I

    move-result p1

    if-lez p1, :cond_4

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/webkit/WebView;

    move-result-object p1

    invoke-virtual {p1}, Landroid/webkit/WebView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    const/4 v0, -0x2

    .line 18
    iput v0, p1, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/webkit/WebView;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    iget-boolean p1, p1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->m:Z

    if-eqz p1, :cond_6

    .line 21
    new-instance p1, Landroid/util/DisplayMetrics;

    invoke-direct {p1}, Landroid/util/DisplayMetrics;-><init>()V

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-virtual {v0}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v0

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    iget p1, p1, Landroid/util/DisplayMetrics;->heightPixels:I

    mul-int/lit8 p1, p1, 0x4

    div-int/lit8 p1, p1, 0x5

    invoke-static {v0, v4, p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->a(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;ZI)V

    goto :goto_0

    .line 24
    :cond_4
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-virtual {p1}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-nez p1, :cond_6

    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-virtual {p1}, Landroid/app/Activity;->isDestroyed()Z

    move-result p1

    if-eqz p1, :cond_5

    goto :goto_0

    .line 25
    :cond_5
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->c(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/os/Handler;

    move-result-object p1

    sget v0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->w:I

    invoke-virtual {p1, v0}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    .line 26
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->c(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/os/Handler;

    move-result-object v0

    const-wide/16 v1, 0x12c

    invoke-virtual {v0, p1, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    :cond_6
    :goto_0
    return-void

    .line 27
    :cond_7
    sget v1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->t:I

    if-ne v0, v1, :cond_8

    .line 28
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->f(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/widget/ProgressBar;

    move-result-object p1

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 29
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->g(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 30
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/webkit/WebView;

    move-result-object p1

    invoke-virtual {p1, v4}, Landroid/webkit/WebView;->setVisibility(I)V

    .line 31
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->d(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Landroid/webkit/WebView;

    move-result-object p1

    const/16 v0, 0x82

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->requestFocus(I)Z

    return-void

    .line 32
    :cond_8
    sget v1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->u:I

    const v4, 0x7f1106ee

    if-ne v0, v1, :cond_9

    .line 33
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1, v4, v3}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    .line 34
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1, v2}, Lcom/estrongs/android/statistics/c;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_2

    .line 35
    :cond_9
    sget v1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->v:I

    if-ne v0, v1, :cond_10

    .line 36
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-nez p1, :cond_a

    .line 37
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1, v4, v3}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    .line 38
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1, v2}, Lcom/estrongs/android/statistics/c;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 39
    :cond_a
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    .line 40
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "box"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_b

    goto :goto_1

    .line 41
    :cond_b
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "onedrive"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_c

    goto :goto_1

    .line 42
    :cond_c
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "gdrive"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_d

    if-eqz p1, :cond_f

    const-string v0, "Gdrive_Create"

    .line 43
    invoke-virtual {p1, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V

    goto :goto_1

    .line 44
    :cond_d
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {v0}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "dropbox"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_e

    if-eqz p1, :cond_f

    const-string v0, "Dropbox_Create"

    .line 45
    invoke-virtual {p1, v0}, Lcom/estrongs/android/statistics/b;->b(Ljava/lang/String;)V

    goto :goto_1

    .line 46
    :cond_e
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "megacloud"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    .line 47
    :cond_f
    :goto_1
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-static {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->b(Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;)Ljava/lang/String;

    move-result-object p1

    const-string v0, "suc"

    invoke-static {p1, v0}, Lcom/estrongs/android/statistics/c;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 48
    :cond_10
    :goto_2
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk$b;->a:Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;->finish()V

    return-void
.end method
